@extends('admin.superadmin.layout.layout')
@section('content')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">轮播修改</h1>
        </div>        
    </div>
    
    <div class="col-lg-12">
        <div class="panel panel-default">   
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">

                       
                        @if (count($errors) > 0)
                            <div class="alert alert-danger">
                            <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                            </ul>
                            </div>
                        @endif  

                        <form role="form" action="{{url('/admin/superadmin/shuffling/update')}}" method="post" enctype=＂multipart/form-data＂>
                            <input type="hidden" name="id" value="{{$data->id}}">    
                            <div class="form-group">
                                <label>书籍名称</label>
                                <input class="form-control" type="text" name="b_name" value="{{old('$data->b_name')}}">  
                            </div>
                             <div class="form-group">
                                <label>书籍简介</label>
                                <input class="form-control" type="text" name="b_desc" value="{{old('$data->b_desc')}}">  
                            </div>
                        
                          
                                
                            
                            {{csrf_field()}}    
                       
                            <button type="submit" class="btn btn-primary btn-lg btn-block">添加</button>
                         
                        </form>
                   
                        </form>
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>

            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div> 

@endsection